﻿using AIStudio.Wpf.Client.Views;
using AIStudio.Wpf.Home.Views;
using Prism.Ioc;
using Prism.Modularity;
using Prism.Regions;

namespace AIStudio.Wpf.Client
{
    public class MainWindowModule : IModule
    {
        public void OnInitialized(IContainerProvider containerProvider)
        {
            var regionManager = containerProvider.Resolve<IRegionManager>();
            //regionManager.RegisterViewWithRegion("MainContentRegion", typeof(LoginView));

            regionManager.RegisterViewWithRegion("MainContentRegion", typeof(IntroduceView).FullName);
        }

        public void RegisterTypes(IContainerRegistry containerRegistry)
        {
            containerRegistry.RegisterForNavigation(typeof(IntroduceView), typeof(IntroduceView).FullName);
        }
    }
}